package cn.javass.dp.proxy.demo1;

public class UserDaoProxy implements IUserDao{

    private IUserDao userDao;

    public UserDaoProxy(IUserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save() {
        System.out.println("111");
        userDao.save();
        System.out.println("222");
    }
}
